<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="pages/keepaccounts/js/keep_accounts.js"></script>
<title>记账本</title>
</head>
<body>
<div>
	支出 收入 转账 借贷

	<div id="chargeDiv">
		<form id="expenditureForm">
			<table>
				<tr>
					<td>金额</td>
					<td><input id="amountEx" name="detail.amount" class="txt_input" /></td>
				</tr>
				<tr>
					<td>类别</td>
					<td><select id="categoryEx" name="detail.categoryId">
								<s:iterator value="expenditureCategoryList">
									<option value='<s:property value="id"/>'>
										<s:property value="categoryName" />
									</option>
								</s:iterator>
						</select>
					</td>
				</tr>
				<tr>
					<td>商家</td>
					<td><select id="merchantEx" name="detail.merchantId" >
							<option value="">（无）</option>
								<s:iterator value="merchantList">
									<option value='<s:property value="id"/>'>
										<s:property value="merchantName" />
									</option>
								</s:iterator>
						</select>
					</td>
				</tr>
				<tr>
					<td>账户</td>
					<td><select id="accountEx" name="detail.accountId">
								<s:iterator value="expenditureAccounts">
									<option value='<s:property value="id"/>'>
										<s:property value="accountName" />
									</option>
								</s:iterator>
						</select>
					</td>
				</tr>
				<tr>
					<td>时间</td>
					<td><input type="text" id="happenedDateEx" name="detail.happenedDate" readonly="readonly" class="Wdate"
							onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"></td>
				</tr>
				<tr>
					<td>项目</td>
					<td><select id="projectEx" name="detail.projectId">
								<s:iterator value="projectList">
									<option value='<s:property value="id"/>'>
										<s:property value="projectName" />
									</option>
								</s:iterator>
						</select>
					</td>
				</tr>
				<tr>
					<td>备注</td>
					<td><input id="remarkEx" name="detail.remark" style="width: 400px" class="txt_input" />
					</td>
				</tr>
				<tr>
					<td></td>
					<td><input type="button" id="newEx" value="保存" />  
						<input type="button" id="clearEx" value="清空" />
<!-- 						<input type="reset" id="resetExpenditure" value="重置" style="display: none;"/> -->
					</td>
				</tr>
				<tr style="display: none;">
					<td></td>
					<td>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div id="incomeDiv">
	</div>
	<div id="transferDiv">
	</div>
	<div id="debtDiv">
	</div>
</div>
</body>

</html>